package com.srzk.youthleagueback.utils;


import org.apache.commons.codec.digest.DigestUtils;

public class MD5Util {

    public static String md5(String src) {
        return DigestUtils.md5Hex(src);
    }

    public static final String salt = "54858";

    //MD5加密密码,用来保存在数据库中
    public static String formPassToDBPass(String formPass) {
        String str = "" + salt.charAt(1) + salt.charAt(2) + formPass + salt.charAt(3) + salt.charAt(4);
        return md5(str);
    }


}